GUI Help > Create > createEdit

createEdit
int handle=createEdit(int x, int y, int width, int height, bool multiLine, handle parent)

Description:
Creates an edit gadget. Edits are boxes into which the user can type text. They are usually to allow the user to enter or edit values, eg: the name of a character in an RPG editor. Edit gadgets have a built-in right-click menu with Cut,Copy,Paste,Undo

Return Value:
Handle to the new panel.

Parameters:
x X position of new gadget
y Y position of new gadget
width Width of new gadget in pixels
height Height of new gadget in pixels
multiLine If 0, the gadget can only have one line of text and scrolls horizontally. If 1, the gadget can have multiple lines of text. When the text reaches the end of a line it is wrapped onto the next. Multiline text boxes scroll vertically.
parent Handle to the parent of the new gadget, or 0 for the main window
Remarks:


See Also:


Example:
(Note: You will need to include the GUI constants file for this example to work)